import request from '@/utils/request'

export function saveDetail(list) {
  return request({
    url: `/api/goods/skuinfo/save`,
    method: 'post',
    data: list
  })
}

export function getList(query) {
  return request({
    url: `/api/goods/skuinfo/list`,
    method: 'post',
    data: query
  })
}

export function updatePublish(id) {
  return request({
    url: `/api/goods/skuinfo/up/${id}`,
    method: 'get'
  })
}

export function getSkuInfoNotSkuIdList(ids) {
  return request({
    url: `/api/goods/skuinfo/getSkuInfoNotSkuIdList`,
    method: 'post',
    data: ids
  })
}
